<%--
  Created by IntelliJ IDEA.
  User: WS
  Date: 2020/7/24
  Time: 22:50
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>首页</title>
</head>
<body>
<h3><shiro:principal/>,欢迎进入首页</h3>
<a href="/testShiroAnnotation">Test Shiro Annotation ${testService}</a></br>
<shiro:hasRole name="admin">
    <a href="/admin">管理员界面</a></br>
</shiro:hasRole>
<shiro:hasRole name="user">
    <a href="/user">用户界面</a></br>
</shiro:hasRole>
</body>
</html>